//
//  HBReadSettingModel.h
//  HeartBeat
//
//  Created by karong on 2023/9/12.
//

#import <Foundation/Foundation.h>
#import "HBChapterModel.h"
NS_ASSUME_NONNULL_BEGIN


@interface HBReadSettingModel : NSObject<NSCoding,NSCopying,YYModel>

@property (copy, nonatomic) NSString *colorStr;//文字颜色
@property (copy, nonatomic) NSString *fontName;//字体名称
@property (assign, nonatomic) NSInteger font;//文字大小
@property (assign, nonatomic) NSInteger lineSpacing;//段落 行间距
@property (assign, nonatomic) CGFloat firstLineHeadIndent;//每段 段首空格
@property (assign, nonatomic) CGFloat paragraphSpacingBefore;//段间距，当前段落和上个段落之间的距离。
@property (assign, nonatomic) CGFloat paragraphSpacing;//段间距，当前段落和下个段落之间的距离。
@property (assign, nonatomic) CGFloat brightness;//亮度
@property (assign, nonatomic) BOOL night;//是否是晚上
@property (assign, nonatomic) BOOL landscape;//是否是横屏
@property (assign, nonatomic) BOOL aiRead;//是否自动阅读
@property (assign, nonatomic) NSInteger aiTime;//自动阅读时间
@property (assign, nonatomic) HBReadColor state;//皮肤控制
@property (assign, nonatomic) HBBrowseType browseState;//阅读方式

///存入数据
+(void)saveData:(HBReadSettingModel *)model;

///读取数据
+(HBReadSettingModel *)showData;

@end

NS_ASSUME_NONNULL_END
